package com.lipi.mall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 二级分类VO
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catelog2VO {

    private String id;

    private String name;

    /**
     * 一级父分类Id
     */
    private String catalog1Id;

    /**
     * 三级子分类list
     */
    private List<Catelog3VO> catalog3List;


    /**
     * 三级分类VO
     */
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Catelog3VO {
        private String id;

        private String name;

        /**
         * 二级父分类Id
         */
        private String catalog2Id;

    }
}
